/* ==========================
   VCET WEBSITE PROGRESS CSS
   Prefix: vcet-website-progress
   Paste after existing progress CSS
   ========================== */

/* Outer wrap — background blue (or gradient) */
.vcet-website-progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0,102,255,.25);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all .25s ease;
  -webkit-tap-highlight-color: transparent;

  /* Blue background (solid). Replace with gradient if you prefer. */
  background: blue;
  /* background: linear-gradient(135deg,#0066ff,#00c6ff) !important; */
}

/* visible state */
.vcet-website-progress-wrap.vcet-website-progress-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* pseudo arrow glyphs (Font Awesome) — pointer-events: none so clicks reach the wrap */
.vcet-website-progress-wrap::after,
.vcet-website-progress-wrap::before {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  text-align: center;
  line-height: 46px;
  font-size: 18px;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  transition: all .2s linear;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: block;
}

/* default arrow (visible when not hovered) */
.vcet-website-progress-wrap::after {
  content: '\f062'; /* caret-up (FontAwesome) — adjust if needed */
  color: #fff;      /* arrow color on normal state */
  z-index: 2;
  opacity: 1;
}

/* hover gradient arrow (fades in) */
.vcet-website-progress-wrap::before {
  content: '\f062';
  z-index: 3;
  opacity: 0;
  background-image: linear-gradient(298deg, #ffffff, #bfe9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* hover behavior */
.vcet-website-progress-wrap:hover::after { opacity: 0; }
.vcet-website-progress-wrap:hover::before { opacity: 1; }

/* SVG ring container */
.vcet-website-progress-circle {
  position: relative;
  z-index: 1;
  display: block;
  width: 46px;
  height: 46px;
  pointer-events: none; /* let clicks go to the wrap */
}

/* style the ring path */
.vcet-website-progress-circle path {
  stroke: orangered;              /* ring stroke color (visible) */
  stroke-width: 4;
  fill: none !important;        /* remove any fill */
  stroke-linecap: round;        /* smooth ends */
  transition: stroke-dashoffset 180ms linear, stroke 180ms linear;
  transform-origin: 50% 50%;
}

/* ensure no SVG children apply a black fill */
.vcet-website-progress-wrap svg,
.vcet-website-progress-wrap svg * {
  background: transparent !important;
  fill: none !important;
}

/* rotate the SVG so the progress starts at the top (12 o'clock) */
.vcet-website-progress-wrap .vcet-website-progress-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* optional: subtle pulse when visible */
.vcet-website-progress-wrap.vcet-website-progress-active {
  animation: vcet-progress-pulse 4s infinite;
}
@keyframes vcet-progress-pulse {
  0% { box-shadow: inset 0 0 0 2px rgba(0,102,255,.18); transform: translateY(0); }
  50% { box-shadow: inset 0 0 0 2px rgba(0,102,255,.28); transform: translateY(-2px); }
  100% { box-shadow: inset 0 0 0 2px rgba(0,102,255,.18); transform: translateY(0); }
}

/* Accessibility: focus state */
.vcet-website-progress-wrap:focus {
  outline: 3px solid rgba(0,198,255,.18);
  outline-offset: 3px;
}
